package com.newenergy.wisehome.data.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by new on 2017/11/21.
 * 情景
 */
@DatabaseTable(tableName = "tb_secne")
public class Scene {

    @DatabaseField(generatedId = true)
    private int id;

    @DatabaseField(columnName = "name")
    private String name;

    @DatabaseField(columnName = "iconName")
    private String iconName = "icon_paty1";

    @DatabaseField(columnName = "type")
    private int type = 1;

    @DatabaseField(columnName = "isChecked")
    private boolean isChecked = false;

    public Scene() {
    }

    public Scene(String name, String iconName) {
        this.name = name;
        this.iconName = iconName;
    }

    public Scene(String name, String iconName, int type) {
        this.name = name;
        this.iconName = iconName;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIconName() {
        return iconName;
    }

    public void setIconName(String iconName) {
        this.iconName = iconName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    @Override
    public String toString() {
        return "Scene{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", iconName='" + iconName + '\'' +
                ", type=" + type +
                ", isChecked=" + isChecked +
                '}';
    }

    /*@Override
    public String toString() {
        return "Scene{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", iconName='" + iconName + '\'' +
                ", type=" + type +
                '}';
    }*/
}
